package com.fyg.controller;


import com.fyg.domain.Article;
import com.fyg.service.IArticleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 文章表 前端控制器
 * </p>
 *
 * @author czx
 * @since 2024-11-14
 */
@RestController
@Api(tags = "文章管理")
@RequestMapping("/article")
public class ArticleController {
    @Autowired
    private IArticleService articleService;
    //http://localhost:8080/article/list
    @ApiOperation("查询全部")
    @GetMapping ("/list")
    public List<Article> test(){
        return articleService.list();
    }

}
